Allow trivially autoloading uses of transient's define macros
authorJonas Bernoulli <jonas@bernoul.li>
Tue, 20 Feb 2024 17:49:20 +0000 (18:49 +0100)
committerJonas Bernoulli <jonas@bernoul.li>
Tue, 20 Feb 2024 21:04:51 +0000 (22:04 +0100)
commit167d9b9040333a5bff64325423750243c60edfa1
tree69e71e1a8a52404799207f3d832e11c38d1753cc
parentbbf0b7d0407883ea0a59c09b501c6e550bb8e10c
Allow trivially autoloading uses of transient's define macros

Since 49e41991b2f transient-define-prefix itself was autoloaded, but
that meant that when ever an autoload file was loaded, which contained
an autoload for a command defined using that macro, transient itself
had to be loaded.

That shouldn't be necessary.  For commands using these macros, an
autoload that is identical to what would have been generated if it
had been defined using defun, works just fine.

* lisp/emacs-lisp/loaddefs-gen.el
(loaddefs-generate--make-autoload): Allow uses of
transient-define-prefix, transient-define-suffix,
transient-define-infix and transient-define-argument
to be autoloaded using just ";;;autoload".

* lisp/transient.el (transient-define-prefix): No longer autoload.
lisp/emacs-lisp/loaddefs-gen.el
lisp/transient.el